package com.yoomiito.app.model.bean;

import com.chad.library.adapter.base.entity.MultiItemEntity;

/**
 * BannerInfo
 *
 * @author Edwin.Wu
 * @version 2016/12/6 17:32
 * @since JDK1.8
 */
public class BannerAndIconInfo implements MultiItemEntity {

    /**
     * id : 1
     * ctime : 2018-12-29 14:32:37
     * mtime : 2018-12-29 14:32:40
     * is_deleted : 0
     * image_url : https://mimitao-cdn.aijiamai.com/banner-course.png
     * icon_url : null
     * bg_url : null
     * title : 新人必看
     * type : 1
     * value : https://mimitao-h5.aijiamai.com/H5/mlsh-newuser/index.html
     * position : 0
     * sort : 7
     * end_time : null
     */

    private long id;
    private String ctime;
    private String mtime;
    private int is_deleted;
    private String image_url;
    private String icon_url;
    private String bg_image_url;
    private String title;
    private int type;//'类型0，单纯图片，1 h5地址，2 商品类目列表商品界面，3, 9.9包邮，4 淘宝地址，5 淘抢购 6 好裆裤商品列表 7优品专区
    private String value;
    private String value_id;
    private int position;
    private long sort;
    private String end_time;
    private int itemType;
    private Chosen mChosen;//用于首页的抢购 爆款
    private Object urlData;
    private String company_id;
    private long feature_id;
    private int show_time;
    private int show_type;//1 每次 2 每天一次
    private int is_number;//1 每次 2 每天一次 不使用 用show_type取代
    private String from_type;//数据来源 advert_banner 来自启动页广告
    private String imageUrl;
    private String bgcolor;
    public Object getUrlData() {
        return urlData;
    }

    public void setUrlData(Object urlData) {
        this.urlData = urlData;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getCtime() {
        return ctime;
    }

    public void setCtime(String ctime) {
        this.ctime = ctime;
    }

    public String getMtime() {
        return mtime;
    }

    public void setMtime(String mtime) {
        this.mtime = mtime;
    }

    public int getIs_deleted() {
        return is_deleted;
    }

    public void setIs_deleted(int is_deleted) {
        this.is_deleted = is_deleted;
    }

    public String getImage_url() {
        return image_url;
    }

    public void setImage_url(String image_url) {
        this.image_url = image_url;
    }

    public String getIcon_url() {
        return icon_url;
    }

    public void setIcon_url(String icon_url) {
        this.icon_url = icon_url;
    }

    public String getBg_image_url() {
        return bg_image_url;
    }

    public void setBg_image_url(String bg_image_url) {
        this.bg_image_url = bg_image_url;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public int getPosition() {
        return position;
    }

    public void setPosition(int position) {
        this.position = position;
    }

    public long getSort() {
        return sort;
    }

    public void setSort(long sort) {
        this.sort = sort;
    }

    public String getEnd_time() {
        return end_time;
    }

    public void setEnd_time(String end_time) {
        this.end_time = end_time;
    }

    public String getValue_id() {
        return value_id;
    }

    public void setValue_id(String value_id) {
        this.value_id = value_id;
    }

    @Override
    public String toString() {
        return "BannerInfo{" +
                "id=" + id +
                ", ctime='" + ctime + '\'' +
                ", mtime='" + mtime + '\'' +
                ", is_deleted=" + is_deleted +
                ", image_url='" + image_url + '\'' +
                ", icon_url=" + icon_url +
                ", bg_url=" + bg_image_url +
                ", title='" + title + '\'' +
                ", type=" + type +
                ", value='" + value + '\'' +
                ", position=" + position +
                ", sort=" + sort +
                ", end_time=" + end_time +
                '}';
    }

    public void setItemType(int itemType) {
        this.itemType = itemType;
    }

    @Override
    public int getItemType() {
        return itemType;
    }

    public Chosen getChosen() {
        return mChosen;
    }

    public void setChosen(Chosen chosen) {
        mChosen = chosen;
    }

    public Chosen getmChosen() {
        return mChosen;
    }

    public void setmChosen(Chosen mChosen) {
        this.mChosen = mChosen;
    }

    public String getCompany_id() {
        return company_id;
    }

    public void setCompany_id(String company_id) {
        this.company_id = company_id;
    }

    public long getFeature_id() {
        return feature_id;
    }

    public void setFeature_id(long feature_id) {
        this.feature_id = feature_id;
    }

    public int getShow_time() {
        return show_time;
    }

    public void setShow_time(int show_time) {
        this.show_time = show_time;
    }

    public int getShow_type() {
        return show_type;
    }

    public void setShow_type(int show_type) {
        this.show_type = show_type;
    }

    public int getIs_number() {
        return is_number;
    }

    public void setIs_number(int is_number) {
        this.is_number = is_number;
    }

    public String getFrom_type() {
        return from_type;
    }

    public void setFrom_type(String from_type) {
        this.from_type = from_type;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public String getBgcolor() {
        return bgcolor;
    }

    public void setBgcolor(String bgcolor) {
        this.bgcolor = bgcolor;
    }
}
